Day 12 - Regular expressions - Single characters
82
$ grep -Eo "HTTP/.\.. 4.." simple.log
| sed -r s,"HTTP/.\.. ",, | sort | uniq -c
2 403
213 404
2 416
If we don’t get rid of the protocol version we get a different histogram, which can be interesting
anyway
$ grep -Eo "HTTP/.\.. 4.." simple.log
| sort | uniq -c
1 HTTP/1.0 403
30 HTTP/1.0 404
1 HTTP/1.1 403
183 HTTP/1.1 404
2 HTTP/1.1 416
Go back to the exercise